package test.pcs;

import com.alibaba.fastjson.JSON;
import com.payment.lc.pcs.client.wrap.service.ProductionWrapService;
import com.payment.lc.pcs.common.enums.BizType;
import com.payment.lc.pcs.service.api.AppSettingService;
import com.payment.lc.pcs.service.api.DynamicDataService;
import com.payment.lc.pcs.service.api.ProductionService;
import com.payment.lc.pcs.service.api.fund.JMFundService;
import com.payment.lc.pcs.service.api.modify.InterestRateService;
import com.payment.lc.pcs.service.api.modify.PcsChannelService;
import com.payment.lc.pcs.service.bo.ProductionSellInfoV2;
import com.payment.lc.pcs.service.domain.ListWrapper;
import com.payment.lc.pcs.service.domain.PaymentChannel;
import com.payment.lc.pcs.service.domain.Production;
import com.payment.lc.pcs.service.domain.ProductionBizInfo;
import com.payment.lc.pcs.service.response.BaseResponse;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import test.BaseTest;

import java.util.List;

/**
 * Created on 2016/8/8.
 */
public class Demo3PcsClientTest2 extends BaseTest {


    @Autowired
    ProductionWrapService productionWrapService;

    @Autowired
    @Qualifier("dynamicDataServiceLocal")
    DynamicDataService dynamicDataServiceLocal;
    @Autowired
    @Qualifier("dynamicDataService")
    DynamicDataService dynamicDataService;

    @Test
    public void test() {
        test1();
    }

    void test1() {
        String prodCode = "FI16015";
        ProductionSellInfoV2 sellInfoV2 = dynamicDataService.getProductionSellInfoV2(prodCode);
        display(sellInfoV2);

        ProductionSellInfoV2 sellInfoV21 = dynamicDataServiceLocal.getProductionSellInfoV2(prodCode);
        display(sellInfoV21);

        System.out.println(JSON.toJSONString(sellInfoV2).equals(JSON.toJSONString(sellInfoV21)));
    }
}